<HTML>
<HEAD><TITLE>查看所有文章</TITLE></HEAD>
<BODY>
  <form action="actionSearchPassage.php" method="post">
    <input type="text" name="pattern">
    <input type="submit" value="搜索">
    (使用正则表达式进行搜索)
  </form>
<?php
  header('Content-Type:text/html;charset=utf-8');
  require_once 'class.php';
  PDOc::_connect();
  session_start();
  $adminRank=$_SESSION['adminRank'];
  if ($adminRank>=1) {
  	PDOc::super_showAllPassages();
  } else {
  	PDOc::showAllPassages();
  }
  PDOc::Button('userIndex.php','返回主页');
?>
</BODY>
</HTML>